package com.gxp.system.service.impl;

import com.gxp.common.core.text.Convert;
import com.gxp.system.domain.ZknjServiceApprove;
import com.gxp.system.mapper.ZknjServiceApproveMapper;
import com.gxp.system.service.IZknjServiceApproveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author zh
 * @date 2025-05-22
 */
@Service
public class ZknjServiceApproveServiceImpl implements IZknjServiceApproveService
{
    @Autowired
    private ZknjServiceApproveMapper zknjServiceApproveMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param zsaId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ZknjServiceApprove selectZknjServiceApproveByZsaId(Long zsaId)
    {
        return zknjServiceApproveMapper.selectZknjServiceApproveByZsaId(zsaId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param zknjServiceApprove 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ZknjServiceApprove> selectZknjServiceApproveList(ZknjServiceApprove zknjServiceApprove)
    {
        return zknjServiceApproveMapper.selectZknjServiceApproveList(zknjServiceApprove);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param zknjServiceApprove 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertZknjServiceApprove(ZknjServiceApprove zknjServiceApprove)
    {
        return zknjServiceApproveMapper.insertZknjServiceApprove(zknjServiceApprove);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param zknjServiceApprove 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateZknjServiceApprove(ZknjServiceApprove zknjServiceApprove)
    {
        return zknjServiceApproveMapper.updateZknjServiceApprove(zknjServiceApprove);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param zsaIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteZknjServiceApproveByZsaIds(String zsaIds)
    {
        return zknjServiceApproveMapper.deleteZknjServiceApproveByZsaIds(Convert.toStrArray(zsaIds));
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param zsaId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteZknjServiceApproveByZsaId(Long zsaId)
    {
        return zknjServiceApproveMapper.deleteZknjServiceApproveByZsaId(zsaId);
    }

    /**
     * 根据expcode查询ZknjServiceApprove
     * @param expcode
     * @return
     */
    @Override
    public List<ZknjServiceApprove> selectZknjServiceApproveByExpcode(String expcode) {
        return zknjServiceApproveMapper.selectZknjServiceApproveByExpcode(expcode);
    }
}

